package host.skiree;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

public class a1 {
	private static final char[] a;

	private static final char[] b;

	static  {
		Charset charset = StandardCharsets.UTF_8;
		a = new char[] {
				'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
				'a', 'b', 'c', 'd', 'e', 'f' };
		b = new char[] {
				'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
				'A', 'B', 'C', 'D', 'E', 'F' };
	}

	private static void a(byte[] paramArrayOfbyte, int paramInt1, int paramInt2, char[] paramArrayOfchar1, char[] paramArrayOfchar2, int paramInt3) {
		int i;
		for (i = paramInt1; i < paramInt1 + paramInt2; i++) {
			int j = paramInt3 + 1;
			paramArrayOfchar2[paramInt3] = paramArrayOfchar1[(paramArrayOfbyte[i] & 0xF0) >>> 4];
			paramInt3 = j + 1;
			paramArrayOfchar2[j] = paramArrayOfchar1[paramArrayOfbyte[i] & 0xF];
		}
	}

	public static char[] b(byte[] paramArrayOfbyte) { return c(paramArrayOfbyte, true); }

	public static char[] c(byte[] paramArrayOfbyte, boolean paramBoolean) {
		char[] arrayOfChar;
		if (paramBoolean) {
			arrayOfChar = a;
		} else {
			arrayOfChar = b;
		}
		return d(paramArrayOfbyte, arrayOfChar);
	}

	protected static char[] d(byte[] paramArrayOfbyte, char[] paramArrayOfchar) {
		char[] arrayOfChar = new char[paramArrayOfbyte.length << 1];
		a(paramArrayOfbyte, 0, paramArrayOfbyte.length, paramArrayOfchar, arrayOfChar, 0);
		return arrayOfChar;
	}

	public static String e(byte[] paramArrayOfbyte) { return new String(b(paramArrayOfbyte)); }
}
